package top.dark.design.patterns.factory.mymethod;

/**
 * Author: Darkn
 * description:
 * Create Time: 2021/4/22 11:17
 */
public abstract class Pizza {

    private String name;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public abstract void prepare();

    public void bake(){
        System.out.println(name + " 开始烘培。。。。。。。。。。。。。。。。");
    }

    public void cut(){
        System.out.println(name + " 开始切分。。。。。。。。。。。。。。。。");
    }

    public void  box(){
        System.out.println(name + " 开始打包。。。。。。。。。。。。。。。。");
    }

}
